package com.focusai.efairy.ui.adapter.project;

import android.content.Context;

import com.focusai.efairy.R;
import com.focusai.efairy.model.response.ProjectManageResponse;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerAdapter;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerViewHolder;

/**
 * Created by luo_guangwen on 2017/9/8.
 */

public class ProjectTextAdapter extends BaseRecyclerAdapter<ProjectManageResponse.DevItem>{

    private Context mContext;

    public ProjectTextAdapter(Context mContext) {
        super(mContext);
        this.mContext = mContext;
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_project_inner;
    }

    @Override
    protected void onBindBaseRecyclerViewHolder(BaseRecyclerViewHolder holder, int position) {
        holder.setText(R.id.ll_project_lable,mList.get(position).efairydevice_name);
        holder.setText(R.id.text_project_value,mList.get(position).efairydevice_id + "");
    }

}